import { createRouter, createWebHistory } from 'vue-router';

const routes = [
    {
        path: '/',
        children:[
          {
            path: '/',
            name: 'admin',
            component: () => import('../components/Example.vue'),
          },

          {
            path: '/admin/register',
            name: 'AdminRegister',
            component: () => import('../components/AdminRegister.vue'),
          },
          {
              path: '/admin/addbilltype',
              name: 'AddBilltype',
              component: () => import('../components/AddBilltype.vue'),
          },
          // 其他路由...
        ]
      },
    
];

const router = createRouter({
  history: createWebHistory(),
  routes
});

export default router;